var baseUrl="http://qyzbtest.87v5.com"
// var baseUrl="http://qiyezhibo.migucloud.com"
export default {
	urls() { //
		return baseUrl+'/view/index.html#/'
	},
	openliveinfo() { //鉴权详情页POST
		return baseUrl+'/api/open/live_info'
	},
	openGetToken() { //测试token
		return  baseUrl+'/api/open/getToken'
	},
	openList() { //节目单
		return  baseUrl+'/api/open/list'
	},
	getWXCode(id,content){ //微信授权
		return baseUrl+"/api/wechat/getWXCode.html?&roomId="+id+"&response_type=code&scope=snsapi_userinfo&state="+content+"#wechat_redirect"
	},
	getopenid(code) { //微信授权后链接跳转获取用户信息scope页面
		return  baseUrl+'/api/wechat/getWXUserInfo?code=' + code
	},
    sendProving() {//post 发送验证码
        return  baseUrl+'/api/msg_notice/sendMsg'
    },
    verifyCode() {//post 验证验证码
        return  baseUrl+'/api/msg_notice/verifyCode'
    },
    getList(userId) {
        return  baseUrl+'/api/wechat/getLiveRoomList?id=' + userId
    },
    getLiveInfo(id) {
        return  baseUrl+'/api/liveroom/infoh5/' + id
    },
    validate(id) { //验证密码
        return  baseUrl+'/api/liveroom/info/' + id
    },
    gettoken() { //获取token，用于连接融云聊天室 post userId name portraitUri
        return  baseUrl+'/api/chat/getToken'
    },
    login() { // post username code companyId
        return  baseUrl+'/api/user/save'
    },
    yzwhite(d) { //post
        return  baseUrl+'/api/verificationWhite'
    },
    getopenid(code) {
        return  baseUrl+'/api/wechat/getWXUserInfo?code=' + code
    },
    looknum() { //post
        return  baseUrl+'/api/liveroom/collectData'
    },
    verify(type, openId, roomId, verifyContent) { //get 验证组织架构活密码
        return  baseUrl+'/api/wechat/verify?verifyType=' + type + '&openId=' + openId + '&roomId=' + roomId + '&verifyContent=' + verifyContent
    },
    dealOpenId(openId, roomId) {
        return  baseUrl+'/api/wechat/dealOpenId?openId=' + openId + '&roomId=' + roomId
    },
    filterContent(content, roomId) { //敏感词过滤 get roomId openid
        return  baseUrl+'/api/sensor/sensorKeyWord'
    },
    getInfoBytoken(token) {
        return  baseUrl+'/api/thirdAuthority/getStaffInfoByToken?token=' + token
    },
    updateuserInfo() { //pc端更新用户信息 Post id nick facePath
        return  baseUrl+'/api/user/updateUserInfo'
    },
    saveSign() { // 签到 post roomId phone signTime companyId(必传) | userId openId
        return  baseUrl+'/api/liveroom/sign/savesign'
    },
    lotteryList(roomId) { //奖项列表
        return  baseUrl+'/api/lottery/list?roomId=' + roomId
    },
    lotteryNum() { // post roomId;companyId;名称userName;头像userFacepath;手机userPhone;微信openId  openId;
        return  baseUrl+'/api/lot/joinLottery'
    },
    lotStatus() { // 查看中奖状态  GET   roomId  num用户抽奖编
        return  baseUrl+'/api/lotlist/lotStatus'
    },
    /*摇一摇*/
    setShark() { // get userId=5&companyId=1&chatRoomId=333&count=33
        return  baseUrl+'/api/wechat_shake/setWeChatShake'
    },
    /*支付*/
    payMoney() { // post roomId companyId openid wxName totalFee打赏金额(分)body打赏描述 spbillCreateIp APP和网页支付提交用户端ip
        return  baseUrl+'/api/wx_pay/reward'
    },
    queryOrder() { // get out_trade_no
        return  baseUrl+'/api/wx_pay/orderQuery'
    },
    /*问卷*/
    questionInfo(testId, openId) {
        return  baseUrl+'/api/livevotepaper/infoh5/' + testId + '?openId=' + openId
    },
    submitTest() { // post
        return  baseUrl+'/api/livevotepaper/submitVote'
    },
    checkResult(paperId) { // get paperId
        return  baseUrl+'/api/livevotepaper/watchVoteResult?paperId=' + paperId
    },
    testLotteryList(companyId, itemId) { // get companyId. itemId
        return  baseUrl+'/api/livevotelot/listh5?page=1&limit=9999&companyId=' + companyId + "&itemId=" + itemId
    },
    /*红包*/
    fahognbao() { //发红包 post
        return  baseUrl+'/api/wx_pay/payForRedpack'
    },
    grabPacket() { // 抢红包接口 post方式 参数 redpacketId, openid, nick
        return  baseUrl+'/api/wx_pay/grabRedpaket'
    },
    queryMoney(openid, companyId) { //get openid companyId
        return  baseUrl+'/api/wxuser/getVaildFee?openid=' + openid + '&companyId=' + companyId
    },
    drawCash() { //post openid roomId fee companyId desc spbill_create_ip
        return  baseUrl+'/api/wx_pay/drawCash'
    },
    /*支付*/
    payment() { // post roomId companyId openid wxName totalFee打赏金额(分)body打赏描述 spbillCreateIp APP和网页支付提交用户端ip
        return  baseUrl+'/api/wx_pay/buyRoomTicket'
    },
    /*验证是否付费*/
    yzPay() { // get openid roomId
        return  baseUrl+'/api/roombuyer/check'
    },
    /*用户统计*/
    collectUserInfo() { // post companyId roomId  openid name ip phone source type 1登录 2聊天 3心跳
        return  baseUrl+'/api/wechat/collectInfo'
    },
    /*获取用户历史聊天*/
    getHistoryChat() { // get roomId
        return  baseUrl+'/api/wechat/getChatHistory'
    },
    /*获取道具打赏*/
    getToolList() { // get companyId roomId page limit
        return  baseUrl+'/api/liveroom_props/list'
    },
    /*获取打赏排行榜*/
    getRewardList() { // get roomId type propId
        return  baseUrl+'/api/liveroom_props/getRank'
    },
    getWxShare() { // get companyId
        return  baseUrl+'/api/wechat/genShareSignature'
    },
    /*获取菜单自定义列表*/
    getMenuList(companyId,roomId) { // get companyId roomId
        return  baseUrl+'/api/liveroom_menu/list?companyId=' + companyId + '&roomId=' + roomId;
    },
    getViewNum(roomId) { // get  rromId
        return  baseUrl+'/api/wechat/getPvAndMsgNum?roomId=' + roomId
    },
    /*base64 img*/
    imgBase() { //post file
        return  baseUrl+"/api/liveroom/base64Image";
    },
    /*邀请卡*/
    inviteSet() { //get roomId
        return  baseUrl+'/api/liveroom/queryInvitation'
    },
    //答题
    submitSubject() {
        return  baseUrl+'/api/liveanswer/subject/submitSubject'
    },
    //答题选项
    getSubject() {
        return  baseUrl+'/api/liveanswer/subject/getSubject'
    },
    //答题对应的人员
    getPersonSummary() {
        return  baseUrl+'/api/liveanswer/subject/getPersonSummary'
    },
    //图文直播---历史
    graphicinfoList() {
        return  baseUrl+"/api/liveroom/graphicinfo/list"
    },
    //互动聊天---历史
    getInteractiveChatHistory() {
        return  baseUrl+"/api/wechat/getInteractiveChatHistory"
    },
    //互动聊天---回复
    replySensorKeyWord() {
        return  baseUrl+"/api/sensor/replySensorKeyWord"
    },
    //当前有多少用户在线
    getOnlineUser() {
        return  baseUrl+"/api/wechat/getOnlineUser"
    },
    //红包记录
    redpacketRecord() {
        return  baseUrl+"/api/grabredpacket/redpacketRecord"
    },
    // 提现记录
    myInfos() {
        return  baseUrl+"/api/livedrawcash/myInfos"
    },
	liveroomlist(){
		return  baseUrl+"/api/liveroom/list"
	},
	savepaperpaperId(paperId) { //投票info   新的接口
		return  baseUrl+'/api/livevotepaper/info/' + paperId
	},
	saveThumb() { //点赞POST
		return  baseUrl+'/api/liveroom/thumb/saveThumb'
    },
    thumbStatus(){  //点赞状态查询
        return  baseUrl+'/api/liveroom/thumb/thumbStatus'
    },
	menuinfo() { //菜单get
		return  baseUrl+'/api/liveroom/menu_info'
	},
	getInteractiveChatHistoryByPage() { //评论
		return  baseUrl+'/api/wechat/getInteractiveChatHistoryByPage'
	},
}